package org.ccay.download;

import org.ccay.core.exception.ApplicationException;

/**
 * 下载系统异常	
 */
public class DownloadException extends ApplicationException {
	
	private static final long serialVersionUID = -25527699010801101L;
	
	/**
	 * 创建异常
	 * @param errorCode 异常码
	 * @param causeBy
	 */
	public DownloadException(String errorCode,Exception causeBy){
		super(errorCode,causeBy,causeBy.getMessage());
	}
	
	/**
	 * 创建异常
	 * @param errorCode 异常码
	 * @param causeBy
	 * @param args 参数列表
	 */
	public DownloadException(String errorCode,Exception causeBy,Object... args){
		super(errorCode,causeBy,args);
	}

	/**
	 * 创建异常
	 * @param errorCode 异常码
	 */
	public DownloadException(String errorCode) {
		super(errorCode);
	}

	/**
	 * @param errorCode
	 * @param param
	 */
	public DownloadException(String errorCode, String param) {
		super(errorCode,param);
	}
}